<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="js/vue.min.js"></script>
    <title>v-bind的基本使用</title>
</head>
<body>
<div id="app">
    <img v-bind:src="imgUrl" alt="" style="width: 20%">
    <a v-bind:href="aHref">百度</a>

    <img :src="imgUrl" alt="" style="width: 20%">
    <a :href="aHref">百度</a>
</div>
</body>
<script>
    const app = new Vue({
        el:"#app",
        data:{
            message:"你好啊",
            imgUrl:"img/天空.jpg",
            aHref:"http://www.baidu.com"
        }
    });
</script>
</html>